import request from '@/utils/request'

const UPLOAD_ACTION = '/notice/upload'

export default {
  action() {
    return UPLOAD_ACTION
  },

  add(args) {
    return request.doPost('/notice/add', args)
  },

  getList(args) {
    return request.doGet('/notice/getList', args)
  },

  getById(args) {
    return request.doGet('/notice/getById', args)
  },

  edit(args) {
    return request.doPost('/notice/edit', args)
  },

  deleteById(args) {
    return request.doGet('/notice/delete', args)
  },

  downlaod(args) {
    return request.doDownload('/notice/download', args)
  },

  getReleaseList(args) {
    return request.doGet('/notice/publish', args)
  },

  getCancelList(args) {
    return request.doGet('/notice/cancel', args)
  },

  delete(args) {
    return request.doGet('/notice/delete', args)
  },

  getUrgeGather(args) {
    return request.doPost('/notice/urgeGather', args)
  },

  getUrgeReport(args) {
    return request.doPost('/notice/urgeReport', args)
  },

  getReception(args) {
    return request.doPost('/notice/reception', args)
  },

  addFeedback(args) {
    return request.doPost('/profeedback/addFeedback', args)
  }
}

